﻿<Timer OnTimeout="@OnTimeout" OnCancel="OnCancel" />
<ConsoleLogger @ref="Logger" class="mt-3" />

@code {
    [NotNull]
    private ConsoleLogger? Logger { get; set; }

    private Task OnTimeout()
    {
        Logger.Log("timer time up");
        return Task.CompletedTask;
    }

    private Task OnCancel()
    {
        Logger.Log("timer canceled");
        return Task.CompletedTask;
    }
}
